package com.yh.doing.observer_pattern.version3;

public class Client {
    public static void main(String[] args) {
//三个观察者产生出来
        Observer liSi = new Lisi3();
        Observer wangSi = new Wangsi();

//定义出韩非子
        HanFeiZi hanFeiZi = new HanFeiZi();
//我们后人根据历史，描述这个场景，有三个人在观察韩非子
        hanFeiZi.addObserver(liSi);
        hanFeiZi.addObserver(wangSi);
//然后这里我们看看韩非子在干什么
        hanFeiZi.haveBreakfast();
    }
}